<%@ page language="java" contentType="text/html; charset=utf-8"
	pageEncoding="utf-8"%>
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>Insert title here</title>
<link rel="stylesheet" href="layui/css/layui.css" />
<script src="layui/layui.js"></script>
</head>
<body>
	<table id="demo" lay-filter="test"></table>

	<script type="text/html" id="barDemo">
      <a class="layui-btn layui-btn-xs" lay-event="upd">删除</a>
  </script>
	<script>
		layui.use([ 'table', 'form', 'layer' ], function() {
			var table = layui.table;
			var form = layui.form;
			var $ = layui.$;
			var layer = layui.layer;

			table.render({
				elem : '#aaaa',
				url : 'getAddress',
				page : true,
				id : "idTest",
				cols : [ [ {
					field : 'id',
					title : '编号',
					width : 80,
				}, {
					field : 'sname',
					title : '姓名',
					width : 120
				}, {
					field : 'sex',
					title : '性别',
					width : 100
				}, {
					field : 'age',
					title : '年龄',
					width : 120
				} ] ]
			});

		});
	</script>
</body>
</html>